List = [1,4,7,5,8,2,1,3,4,5,9,7,6,1,10]
li = []

List.sort()

for i in range(len(List)):
    if List[i] in li:
        i += 1
        continue
    li.append(List[i])
    print(List[i], "出现的次数为 :", List.count(List[i]), "次")
